<script setup lang="ts">
  import Home from '@/components/Home.vue';
  import { reactive, ref } from 'vue';
  var isShow = ref(false)
  var users = reactive([{id:1,name:'张三',age:19},{id:2,name:'李四',age:20}])
</script>
<template>
  <button @click="isShow = !isShow">显示/隐藏</button>
  <Home v-if="isShow" x="123+321" :y="123+321" :users="users"></Home>
</template>
<style scoped></style>